﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chapter.aspx.cs" Inherits="chapter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>章节号编辑</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="chapterlist" runat="server" AllowSorting="True" 
            DataKeyNames="No" AutoGenerateColumns="False"
            OnRowEditing="chapterlist_RowEditing"
            OnRowCancelingEdit="chapterlist_RowCancelingEdit"
            OnRowDeleting = "chapterlist_RowDeleting"
            OnRowUpdating = "chapterlist_RowUpdating"
             >
            <Columns>
            <asp:BoundField DataField="No" HeaderText="序号" ReadOnly="True" />
            <asp:BoundField DataField="CNo" HeaderText="章节号" DataFormatString="ATA{0:d}" />
            <asp:BoundField DataField="CName" HeaderText="章节名" />
            <asp:CommandField HeaderText="编辑" ShowEditButton="true" EditText="修改" 
                    UpdateText="确定" />
            <asp:CommandField HeaderText="删除" ShowDeleteButton="true" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
